#include "GpsLuxSensor.h"


GpsLuxSensor::GpsLuxSensor(DummyChannel& channel, const ExtendDeviceType& deviceType, const std::string& deviceActknowlege): CompoundDevice(channel, deviceType, deviceActknowlege)
, mgps(channel, deviceType, deviceActknowlege), mlux(channel, deviceType, deviceActknowlege) {
    msubDevices.emplace(&ExtendDeviceEnum::GPS, &mgps);
    msubDevices.emplace(&ExtendDeviceEnum::LUX, &mlux);
}




bool GpsLuxSensor::recheck() noexcept {

    return mgps.activeUpdateInformation();
}



